package com.sdx.console.activity.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *活动查询
 */
public class ActivityMainQuery extends PageParam {
    @Query(name = "活动id", display = true)        
    private Integer actId;
    @Query(name = "活动名称", display = true)        
    private String actName;
    @Query(name = "活动开始时间", display = true)        
	private String startTime;
	private Date startTimeStart;
	private Date startTimeEnd;
    @Query(name = "活动截止时间", display = true)        
	private String endTime;
	private Date endTimeStart;
	private Date endTimeEnd;
    @Query(name = "活动类型 1、助力高考", display = true)        
    private Integer actType;
    @Query(name = "上线状态 1、新增，2、上线，3、下线", display = true)        
    private Integer actStatus;
    public Integer getActId(){
        return  actId;
    }
    public void setActId(Integer actId ){
        this.actId = actId;
    }
    public String getActName(){
        return  actName;
    }
    public void setActName(String actName ){
        this.actName = actName;
    }
	public String getStartTime(){
		return  startTime;
	}
	public void setStartTime(String startTime ){
		this.startTime = startTime;
		Date[] timePair = Utils.parseQueryTime(startTime);
		if (timePair!=null && timePair[0]!=null) {
			this.startTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.startTimeEnd = timePair[1];
		}

	}
	public Date getStartTimeStart(){
		return  startTimeStart;
	}
	public void setStartTimeStart(Date startTimeStart ){
		this.startTimeStart = startTimeStart;
	}
	public Date getStartTimeEnd(){
		return  startTimeEnd;
	}
	public void setStartTimeEnd(Date startTimeEnd ){
		this.startTimeEnd = startTimeEnd;
	}
	public String getEndTime(){
		return  endTime;
	}
	public void setEndTime(String endTime ){
		this.endTime = endTime;
		Date[] timePair = Utils.parseQueryTime(endTime);
		if (timePair!=null && timePair[0]!=null) {
			this.endTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.endTimeEnd = timePair[1];
		}

	}
	public Date getEndTimeStart(){
		return  endTimeStart;
	}
	public void setEndTimeStart(Date endTimeStart ){
		this.endTimeStart = endTimeStart;
	}
	public Date getEndTimeEnd(){
		return  endTimeEnd;
	}
	public void setEndTimeEnd(Date endTimeEnd ){
		this.endTimeEnd = endTimeEnd;
	}
    public Integer getActType(){
        return  actType;
    }
    public void setActType(Integer actType ){
        this.actType = actType;
    }
    public Integer getActStatus(){
        return  actStatus;
    }
    public void setActStatus(Integer actStatus ){
        this.actStatus = actStatus;
    }
 
}
